package lab02.test13;

public class School extends ComputerAverage {

       //总分除以总科目。
    @Override

    double average(double[] scores) {
        double sum = 0;

        double average;

        for (int i = 0;  i < scores.length;  i++) {

            sum = scores[i] + sum;
        }

        average = sum / scores.length;
        return average;

    }

}
